package com.sea.finance.service;


import com.sea.finance.entity.ExchangeRate;
import com.sea.operate.entity.Related;
import org.apache.ibatis.annotations.Param;

import java.io.InputStream;
import java.util.List;

/**
 * @author 陈鸿飞
 */
public interface ExchangeRateService {

    /**
     * 查询指定
     * @param rate
     * @return
     */
    List<ExchangeRate> findByCnd(ExchangeRate rate);

    /**
     * 新增
     * @param rate
     * @return
     */
    int save(ExchangeRate rate);
    /**
     * 查找指定
     * @param id
     * @return
     */
    ExchangeRate findById(Integer id);

    /**
     * 修改
     * @param rate
     * @return
     */
    int usave(ExchangeRate rate);
    /**
     * 查询汇率
     * @param rateFromName
     * @param rateToName
     * @return
     */
    ExchangeRate findByFromName(String rateFromName,String rateToName);

    ExchangeRate findByRateName(String rateFromName, String rateName);
}
